﻿import kliment.events.Event;

/**
 * ...
 * @author Kliment
 */
class kliment.events.HTTPStatusEvent extends Event {
	public static var HTTP_STATUS:String = "httpStatus";
	
	private var _status:Number;
	
	public function HTTPStatusEvent(type:String, target:Object, status:Number) {
		super(type, target);
		_status = status;
	}
	
	public function get status():Number { return _status; }
	
	public function toString():String {
		return "[HTTPStatusEvent type=" + _type + " target=" + _target + " status = " + _status + "]";
	}
	
	public function clone():HTTPStatusEvent {
		return new HTTPStatusEvent(_type, _target, _status);
	}
}